package com.shellinghome.tools ;

import com.shellinghome.vehicle.Vehicle;

public class Car extends Vehicle {
	private String name ;
	private String color ;
	private int weight ;

	public Car( ){

	} 

	public void car( ){
		System.out.println("名叫"+getName( )+getColor( )+"火星探险车，其重量为"+getWeight( )+"吨。");	
	}



//==================================
	public void setName( String name){
		this.name =name ;

	}

	public String getName( ){
		return name ;
	}

	public void setColor( String color){
		this.color =color ;

	}

	public String getColor( ){
		return color ;
	}


	public void setWeight( int weight){
		this.weight = weight ;
	}

	public int getWeight( ){
		return weight;
	}



}